package com.IMI.DatabaseActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;

public class LoadingPage extends Activity {
    /** Called when the activity is first created. */
	 private ProgressBar pb1;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loadingscreen);
       
        pb1 = (ProgressBar) findViewById(R.id.progress); 
        pb1.isShown();
        final Handler mHandler = new Handler();	
                
        final Intent intent = new Intent(this,DatabaseActivity.class);
            
        new Thread(){
                public void run() {
                            try {
								Thread.sleep(5000);
							} catch (InterruptedException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							//mHandler.sendEmptyMessage(0);
							 mHandler.post(new Runnable() {
		                         public void run() {
		                        	 	startActivityForResult(intent, 0);
		                        	    
		                        }});
                            //startActivity( new Intent(WMXSplash.this, WMXLogin.class) );
                  
                }
                                 // Initialize application data here
                
        }.start();
        
    }
}
